﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000653 RID: 1619
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetAvatarDataCsReq : IMessage<GetAvatarDataCsReq>, IMessage, IEquatable<GetAvatarDataCsReq>, IDeepCloneable<GetAvatarDataCsReq>, IBufferMessage
	{
		// Token: 0x170014EF RID: 5359
		// (get) Token: 0x0600491A RID: 18714 RVA: 0x000C9121 File Offset: 0x000C7321
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetAvatarDataCsReq> Parser
		{
			get
			{
				return GetAvatarDataCsReq._parser;
			}
		}

		// Token: 0x170014F0 RID: 5360
		// (get) Token: 0x0600491B RID: 18715 RVA: 0x000C9128 File Offset: 0x000C7328
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetAvatarDataCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170014F1 RID: 5361
		// (get) Token: 0x0600491C RID: 18716 RVA: 0x000C913A File Offset: 0x000C733A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetAvatarDataCsReq.Descriptor;
			}
		}

		// Token: 0x0600491D RID: 18717 RVA: 0x000C9141 File Offset: 0x000C7341
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetAvatarDataCsReq()
		{
		}

		// Token: 0x0600491E RID: 18718 RVA: 0x000C9154 File Offset: 0x000C7354
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetAvatarDataCsReq(GetAvatarDataCsReq other) : this()
		{
			this.baseAvatarIdList_ = other.baseAvatarIdList_.Clone();
			this.isGetAll_ = other.isGetAll_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600491F RID: 18719 RVA: 0x000C918A File Offset: 0x000C738A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetAvatarDataCsReq Clone()
		{
			return new GetAvatarDataCsReq(this);
		}

		// Token: 0x170014F2 RID: 5362
		// (get) Token: 0x06004920 RID: 18720 RVA: 0x000C9192 File Offset: 0x000C7392
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> BaseAvatarIdList
		{
			get
			{
				return this.baseAvatarIdList_;
			}
		}

		// Token: 0x170014F3 RID: 5363
		// (get) Token: 0x06004921 RID: 18721 RVA: 0x000C919A File Offset: 0x000C739A
		// (set) Token: 0x06004922 RID: 18722 RVA: 0x000C91A2 File Offset: 0x000C73A2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsGetAll
		{
			get
			{
				return this.isGetAll_;
			}
			set
			{
				this.isGetAll_ = value;
			}
		}

		// Token: 0x06004923 RID: 18723 RVA: 0x000C91AB File Offset: 0x000C73AB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetAvatarDataCsReq);
		}

		// Token: 0x06004924 RID: 18724 RVA: 0x000C91BC File Offset: 0x000C73BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetAvatarDataCsReq other)
		{
			return other != null && (other == this || (this.baseAvatarIdList_.Equals(other.baseAvatarIdList_) && this.IsGetAll == other.IsGetAll && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004925 RID: 18725 RVA: 0x000C920C File Offset: 0x000C740C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.baseAvatarIdList_.GetHashCode();
			if (this.IsGetAll)
			{
				num ^= this.IsGetAll.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004926 RID: 18726 RVA: 0x000C9259 File Offset: 0x000C7459
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004927 RID: 18727 RVA: 0x000C9261 File Offset: 0x000C7461
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004928 RID: 18728 RVA: 0x000C926C File Offset: 0x000C746C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.IsGetAll)
			{
				output.WriteRawTag(16);
				output.WriteBool(this.IsGetAll);
			}
			this.baseAvatarIdList_.WriteTo(ref output, GetAvatarDataCsReq._repeated_baseAvatarIdList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004929 RID: 18729 RVA: 0x000C92BC File Offset: 0x000C74BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.baseAvatarIdList_.CalculateSize(GetAvatarDataCsReq._repeated_baseAvatarIdList_codec);
			if (this.IsGetAll)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600492A RID: 18730 RVA: 0x000C9304 File Offset: 0x000C7504
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetAvatarDataCsReq other)
		{
			if (other == null)
			{
				return;
			}
			this.baseAvatarIdList_.Add(other.baseAvatarIdList_);
			if (other.IsGetAll)
			{
				this.IsGetAll = other.IsGetAll;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600492B RID: 18731 RVA: 0x000C9351 File Offset: 0x000C7551
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600492C RID: 18732 RVA: 0x000C935C File Offset: 0x000C755C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 64U && num != 66U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.baseAvatarIdList_.AddEntriesFrom(ref input, GetAvatarDataCsReq._repeated_baseAvatarIdList_codec);
					}
				}
				else
				{
					this.IsGetAll = input.ReadBool();
				}
			}
		}

		// Token: 0x04001D03 RID: 7427
		private static readonly MessageParser<GetAvatarDataCsReq> _parser = new MessageParser<GetAvatarDataCsReq>(() => new GetAvatarDataCsReq());

		// Token: 0x04001D04 RID: 7428
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001D05 RID: 7429
		public const int BaseAvatarIdListFieldNumber = 8;

		// Token: 0x04001D06 RID: 7430
		private static readonly FieldCodec<uint> _repeated_baseAvatarIdList_codec = FieldCodec.ForUInt32(66U);

		// Token: 0x04001D07 RID: 7431
		private readonly RepeatedField<uint> baseAvatarIdList_ = new RepeatedField<uint>();

		// Token: 0x04001D08 RID: 7432
		public const int IsGetAllFieldNumber = 2;

		// Token: 0x04001D09 RID: 7433
		private bool isGetAll_;
	}
}
